package im.starchat.chat.activity.publish;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

import butterknife.ButterKnife;
import butterknife.InjectView;
import im.starchat.chat.R;


/**
 * 直播选择界面
 */
public class PublishChooseActivity extends Activity implements View.OnClickListener{

    @InjectView(R.id.base_layout)
    RelativeLayout mBaseLayout;
    @InjectView(R.id.zhibo_layout)
    LinearLayout mZhiboLayout;
    @InjectView(R.id.parade_layout)
    LinearLayout mParadeLayout;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_publish_choose);
        ButterKnife.inject(this);

        mBaseLayout.setOnClickListener(this);
        mZhiboLayout.setOnClickListener(this);
        mParadeLayout.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.base_layout:
                finish();
                break;
            case R.id.zhibo_layout:
                startActivity(new Intent(PublishChooseActivity.this, ReleaseLiveActivity.class));
                finish();
                break;
            case R.id.parade_layout:
                startActivity(new Intent(PublishChooseActivity.this, ReleaseParadeActivity.class));
                finish();
                break;
        }
    }
}
